home *** CD-ROM | disk | FTP | other *** search
- global oldMouseP, drops, cursorSpr, animate, gravite
-
- on enterFrame
- if not soundBusy(1) then
- puppetSound(1, member("fuckhead"))
- end if
- if the mouseV > 400 then
- if the member of sprite 7 <> member("navbarupLonger") then
- set the member of sprite 7 to member("navbarupLonger")
- set the loc of sprite 7 to point(320, 491)
- end if
- if the mouseH < 80 then
- set the member of sprite 5 to member("QuitON")
- else
- if the mouseH > 550 then
- set the member of sprite 6 to member("creditsON")
- else
- set the member of sprite 5 to "QuitOFF"
- set the member of sprite 6 to "creditsOFF"
- end if
- end if
- else
- if (the member of sprite 7 <> member("navBarDOWNLonger")) and (the member of sprite 7 <> member("infobarON")) then
- set the member of sprite 7 to member("navBarDOWNLonger")
- set the loc of sprite 7 to point(320, 491)
- set the member of sprite 5 to "QuitOFF"
- set the member of sprite 6 to "creditsOFF"
- end if
- end if
- mouseP = point(the mouseH, the mouseV)
- if inside(mouseP, rect(0, 0, 640, 480)) then
- cursor(200)
- else
- cursor(-1)
- end if
- diffP = mouseP - oldMouseP
- horiz = getAt(diffP, 1)
- vert = getAt(diffP, 2)
- drop = 1
- if horiz < -5 then
- if vert < -5 then
- set the member of sprite cursorSpr to member("northwest")
- else
- if vert > 5 then
- set the member of sprite cursorSpr to member("southwest")
- else
- set the member of sprite cursorSpr to member("west")
- end if
- end if
- else
- if horiz > 5 then
- if vert < -5 then
- set the member of sprite cursorSpr to member("northeast")
- else
- if vert > 5 then
- set the member of sprite cursorSpr to member("southeast")
- else
- set the member of sprite cursorSpr to member("east")
- end if
- end if
- else
- if vert < -5 then
- set the member of sprite cursorSpr to member("north")
- else
- if vert > 5 then
- set the member of sprite cursorSpr to member("south")
- else
- set the member of sprite cursorSpr to member("stop")
- drop = 0
- end if
- end if
- end if
- end if
- set the loc of sprite cursorSpr to mouseP
- repeat with a = 1 to count(drops)
- doMe = getAt(drops, a)
- check(doMe)
- end repeat
- if (random(2) = 2) and drop then
- repeat with a = 1 to count(drops)
- doMe = getAt(drops, a)
- if not doMe.pActive then
- drop(doMe, cursorSpr)
- exit repeat
- end if
- end repeat
- end if
- oldMouseP = point(the mouseH, the mouseV)
- animLoop = 1
- repeat with i = 1 to count(animate)
- doMe = getAt(animate, i)
- animLoop(doMe)
- end repeat
- animLoop = 0
- gravitate = 1
- if count(gravite) > 0 then
- repeat with x = 1 to count(gravite)
- doMe = getAt(gravite, x)
- gravitate(doMe)
- end repeat
- end if
- gravitate = 0
- end
-
- on exitFrame
- go(the frame)
- end
-